<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;

class FuncType extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('func_type', function (Blueprint $table) {
             $table->engine = 'MyISAM';
             $table->charset = 'utf8';
             $table->collation = 'utf8_general_ci';
            // CONTENT
            $table->string('func_typeid', 100)->nullable(false)->default('')->comment('');
			$table->string('func_name', 255)->nullable(false)->default('')->comment('');
			$table->integer('dt_typeid')->nullable(false)->default(0)->comment('');
			$table->integer('func_enable')->nullable(false)->default(1)->comment('');
			$table->string('func_icon', 255)->nullable()->default('')->comment('');
			$table->string('childTypeName', 255)->nullable()->default(null)->comment('');
			$table->string('childTypePage', 225)->nullable()->default(null)->comment('');
			$table->index('func_typeid', 'func_typeid');
			
        });

        
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('func_type');
    }
}
